package com.yzy.mapper.system;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface TableDao {
    void createTable(@Param("tableName") String tableName, @Param("columns") Map<String, String> columns);

    void addColumnOfTable(@Param("tableName") String tableName, @Param("columnName") String columnName, @Param("columnType") String columnType);

    List<String> getColumnsByDataBaseAndTable(@Param("dataBaseName") String dataBaseName, @Param("tableName") String tableName);

    List<String> getTablesByDataBaseAndTable(@Param("dataBaseName") String dataBaseName, @Param("tableName") String tableName);
}
